#ifndef UTILS_SHM_H_
#define UTILS_SHM_H_

#include <stdint.h>

// Structure for SharedMemory using C11 features
typedef struct {
  int32_t shm_id;
  void *shm_addr;
} SharedMemory;

bool shared_memory_create(SharedMemory *shm, const char *shm_path, int32_t proj_id, uint32_t shm_size);
void shared_memory_destroy(const SharedMemory *shm);

void inno_log_error(const char *cmd_fmt, ...);
void inno_log_info(const char *cmd_fmt, ...);

#endif  // UTILS_SHM_H_
